#ifndef IMAGE_DIALOG_H
#define IMAGE_DIALOG_H

#include <QVariant>
#include <QWidget>
#include <QTimer>
#include <QFileInfo>
#include <QDomElement>
class QBoxLayout;
class ImageSettingsWidget;
class ImageListBox;

class ImageWindow : public QWidget {
Q_OBJECT
public:
    ImageWindow(QDomElement root, QWidget *parent = NULL);
protected:
    bool loadingMessage;
    QDomElement root, selected;
    QBoxLayout *layout;
    ImageListBox *listBox;
    ImageSettingsWidget *settingsWidget;
    QList < QString > loadedImages;
    QTimer loadTimer;
protected slots:
    void lazyLoad();
    void loadTimerEvent();
    void addFile(QDomElement);
    void selectionChanged(QVariant id);
    void enableToggled();
    void radioBtnClicked();
};

#endif

